/*
 * $Id$
 */
package se.combitech.combiorder.soap;

import java.util.List;

import javax.inject.Inject;
import javax.jws.WebParam;
import javax.jws.WebService;

import se.combitech.combiorder.model.Customer;
import se.combitech.combiorder.service.CustomerService;

@WebService
public class OrderWebService {

    @Inject
    CustomerService customerService;

    public List<Customer> getAllCustomers() {
        return customerService.findAllCustomers();
    }

    public Customer getCustomerById(@WebParam(name="customerId") long id) {
        return customerService.findCustomerByID(id);
    }

}
